/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author Eduardo 9 de Julio
 */
@Entity
public class DocumentType implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int idDocumentType;
    @Column(nullable = true, unique = false, length = 150)
    private String description;

    public DocumentType() {
    }

    public DocumentType(int idDocumentType, String description) {
        this.idDocumentType = idDocumentType;
        this.description = description;
    }

    public int getIdDocumentType() {
        return idDocumentType;
    }

    public void setIdDocumentType(int id) {
        this.idDocumentType = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "entities.TipoDocumento[ id=" + idDocumentType + " ]";
    }
}
